<template>
	<el-button text @click="打开">打开消息盒子</el-button>
</template>
<script setup>
import { ElMessageBox } from 'element-plus'

const 打开 = () => {
 ElMessageBox.alert('','我是标题',
	{ autofocus:true}
 ).then((value) => {
	   console.log("确定",value)
   })
   .catch(() => {
	   console.log("取消")
   })
}
</script>
<style lang="scss"  scoped>

</style>